[INFO] cloning repository https://github.com/MJJBennett/cardgame
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MJJBennett/cardgame" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMJJBennett%2Fcardgame", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMJJBennett%2Fcardgame'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 77f0226a4f75a66c5e7da6c8cd286cc62bb4c4b8
[INFO] testing MJJBennett/cardgame against try#46592174fb13958bb9a2aa0d7af6c1224e1d7143 for pr-83796
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMJJBennett%2Fcardgame" "/workspace/builds/worker-6/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/MJJBennett/cardgame on toolchain 46592174fb13958bb9a2aa0d7af6c1224e1d7143
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+46592174fb13958bb9a2aa0d7af6c1224e1d7143" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/MJJBennett/cardgame
[INFO] finished tweaking git repo https://github.com/MJJBennett/cardgame
[INFO] tweaked toml for git repo https://github.com/MJJBennett/cardgame written to /workspace/builds/worker-6/source/Cargo.toml
[INFO] crate git repo https://github.com/MJJBennett/cardgame already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+46592174fb13958bb9a2aa0d7af6c1224e1d7143" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded backtrace v0.3.53
[INFO] [stderr]   Downloaded image v0.23.10
[INFO] [stderr]   Downloaded weezl v0.1.1
[INFO] [stderr]   Downloaded object v0.21.1
[INFO] [stderr]   Downloaded polling v2.0.1
[INFO] [stderr]   Downloaded piston2d-opengl_graphics v0.74.0
[INFO] [stderr]   Downloaded piston2d-graphics v0.37.0
[INFO] [stderr]   Downloaded pistoncore-event_loop v0.52.0
[INFO] [stderr]   Downloaded piston v0.52.0
[INFO] [stderr]   Downloaded pistoncore-glutin_window v0.66.0
[INFO] [stderr]   Downloaded futures-lite v1.11.1
[INFO] [stderr]   Downloaded async-io v1.1.10
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+46592174fb13958bb9a2aa0d7af6c1224e1d7143" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] ff43340d4f7c03e428bc8ea0d1c9f5ab87d8e065730928f06059e6765b63c09a
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "ff43340d4f7c03e428bc8ea0d1c9f5ab87d8e065730928f06059e6765b63c09a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ff43340d4f7c03e428bc8ea0d1c9f5ab87d8e065730928f06059e6765b63c09a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ff43340d4f7c03e428bc8ea0d1c9f5ab87d8e065730928f06059e6765b63c09a", kill_on_drop: false }`
[INFO] [stdout] ff43340d4f7c03e428bc8ea0d1c9f5ab87d8e065730928f06059e6765b63c09a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+46592174fb13958bb9a2aa0d7af6c1224e1d7143" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 118131c9f812b7a429944325c12f16cfa7fe8352dec8c9c7a43e07a2aa9b54e5
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "118131c9f812b7a429944325c12f16cfa7fe8352dec8c9c7a43e07a2aa9b54e5", kill_on_drop: false }`
[INFO] [stderr]    Compiling cfg-if v0.1.10
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling log v0.4.11
[INFO] [stderr]    Compiling proc-macro2 v1.0.24
[INFO] [stderr]    Compiling version_check v0.9.2
[INFO] [stderr]    Compiling byteorder v1.3.4
[INFO] [stderr]    Compiling syn v1.0.44
[INFO] [stderr]    Compiling maybe-uninit v2.0.0
[INFO] [stderr]    Compiling khronos_api v3.1.0
[INFO] [stderr]    Compiling typenum v1.12.0
[INFO] [stderr]    Compiling fnv v1.0.7
[INFO] [stderr]    Compiling scopeguard v1.1.0
[INFO] [stderr]    Compiling once_cell v1.4.1
[INFO] [stderr]    Compiling bytes v0.5.6
[INFO] [stderr]    Compiling serde v1.0.116
[INFO] [stderr]    Compiling futures-io v0.3.6
[INFO] [stderr]    Compiling percent-encoding v2.1.0
[INFO] [stderr]    Compiling tinyvec v0.3.4
[INFO] [stderr]    Compiling matches v0.1.8
[INFO] [stderr]    Compiling httparse v1.3.4
[INFO] [stderr]    Compiling rayon-core v1.8.1
[INFO] [stderr]    Compiling pin-utils v0.1.0
[INFO] [stderr]    Compiling serde_derive v1.0.116
[INFO] [stderr]    Compiling piston-graphics_api_version v1.0.0
[INFO] [stderr]    Compiling cc v1.0.61
[INFO] [stderr]    Compiling async-task v4.0.2
[INFO] [stderr]    Compiling ryu v1.0.5
[INFO] [stderr]    Compiling cpuid-bool v0.1.2
[INFO] [stderr]    Compiling hashbrown v0.9.1
[INFO] [stderr]    Compiling opaque-debug v0.3.0
[INFO] [stderr]    Compiling mime v0.3.16
[INFO] [stderr]    Compiling base64 v0.12.3
[INFO] [stderr]    Compiling serde_json v1.0.59
[INFO] [stderr]    Compiling weezl v0.1.1
[INFO] [stderr]    Compiling utf-8 v0.7.5
[INFO] [stderr]    Compiling bytemuck v1.4.1
[INFO] [stderr]    Compiling read_color v1.0.0
[INFO] [stderr]    Compiling tower-service v0.3.0
[INFO] [stderr]    Compiling quick-error v1.2.3
[INFO] [stderr]    Compiling piston-texture v0.8.0
[INFO] [stderr]    Compiling interpolation v0.2.0
[INFO] [stderr]    Compiling httpdate v0.3.2
[INFO] [stderr]    Compiling urlencoding v1.1.1
[INFO] [stderr]    Compiling piston-shaders_graphics2d v0.3.1
[INFO] [stderr]    Compiling tracing-core v0.1.17
[INFO] [stderr]    Compiling libloading v0.6.4
[INFO] [stderr]    Compiling vecmath v1.0.0
[INFO] [stderr]    Compiling lock_api v0.3.4
[INFO] [stderr]    Compiling futures-task v0.3.6
[INFO] [stderr]    Compiling futures-channel v0.3.6
[INFO] [stderr]    Compiling unicode-bidi v0.3.4
[INFO] [stderr]    Compiling shader_version v0.7.0
[INFO] [stderr]    Compiling unicode-normalization v0.1.13
[INFO] [stderr]    Compiling http v0.2.1
[INFO] [stderr]    Compiling input_buffer v0.3.1
[INFO] [stderr]    Compiling generic-array v0.14.4
[INFO] [stderr]    Compiling unicase v2.6.0
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling num-traits v0.2.12
[INFO] [stderr]    Compiling crossbeam-utils v0.7.2
[INFO] [stderr]    Compiling memoffset v0.5.6
[INFO] [stderr]    Compiling crossbeam-epoch v0.8.2
[INFO] [stderr]    Compiling num-integer v0.1.43
[INFO] [stderr]    Compiling indexmap v1.6.0
[INFO] [stderr]    Compiling rayon v1.4.1
[INFO] [stderr]    Compiling num-rational v0.3.0
[INFO] [stderr]    Compiling num-iter v0.1.41
[INFO] [stderr]    Compiling dlib v0.4.2
[INFO] [stderr]    Compiling async-channel v1.5.1
[INFO] [stderr]    Compiling crc32fast v1.2.0
[INFO] [stderr]    Compiling gif v0.11.1
[INFO] [stderr]    Compiling getrandom v0.1.15
[INFO] [stderr]    Compiling net2 v0.2.35
[INFO] [stderr]    Compiling memmap v0.7.0
[INFO] [stderr]    Compiling rand_os v0.1.3
[INFO] [stderr]    Compiling nb-connect v1.0.2
[INFO] [stderr]    Compiling raw-window-handle v0.3.3
[INFO] [stderr]    Compiling shared_library v0.1.9
[INFO] [stderr]    Compiling time v0.1.44
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling socket2 v0.3.15
[INFO] [stderr]    Compiling nix v0.14.1
[INFO] [stderr]    Compiling futures-lite v1.11.1
[INFO] [stderr]    Compiling twoway v0.1.8
[INFO] [stderr]    Compiling buf_redux v0.8.4
[INFO] [stderr]    Compiling quote v0.6.13
[INFO] [stderr]    Compiling wayland-sys v0.21.13
[INFO] [stderr]    Compiling smallvec v0.6.13
[INFO] [stderr]    Compiling x11-dl v2.18.5
[INFO] [stderr]    Compiling gl_generator v0.14.0
[INFO] [stderr]    Compiling gl_generator v0.10.0
[INFO] [stderr]    Compiling tracing v0.1.21
[INFO] [stderr]    Compiling polling v2.0.1
[INFO] [stderr]    Compiling want v0.3.0
[INFO] [stderr]    Compiling kv-log-macro v1.0.7
[INFO] [stderr]    Compiling stb_truetype v0.3.1
[INFO] [stderr]    Compiling deflate v0.8.6
[INFO] [stderr]    Compiling tiff v0.5.0
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling idna v0.2.0
[INFO] [stderr]    Compiling mio v0.6.22
[INFO] [stderr]    Compiling osmesa-sys v0.1.2
[INFO] [stderr]    Compiling clap v2.33.3
[INFO] [stderr]    Compiling libloading v0.5.2
[INFO] [stderr]    Compiling rand v0.6.5
[INFO] [stderr]    Compiling quote v1.0.7
[INFO] [stderr]    Compiling wayland-scanner v0.21.13
[INFO] [stderr]    Compiling async-executor v1.3.0
[INFO] [stderr]    Compiling async-io v1.1.10
[INFO] [stderr]    Compiling blocking v1.0.2
[INFO] [stderr]    Compiling generic-array v0.12.3
[INFO] [stderr]    Compiling mime_guess v2.0.3
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling parking_lot_core v0.6.2
[INFO] [stderr]    Compiling headers-core v0.2.0
[INFO] [stderr]    Compiling http-body v0.3.1
[INFO] [stderr]    Compiling png v0.16.7
[INFO] [stderr]    Compiling url v2.1.1
[INFO] [stderr]    Compiling approx v0.3.2
[INFO] [stderr]    Compiling ordered-float v1.1.0
[INFO] [stderr]    Compiling line_drawing v0.7.0
[INFO] [stderr]    Compiling tokio v0.2.22
[INFO] [stderr]    Compiling gl v0.11.0
[INFO] [stderr]    Compiling crossbeam-channel v0.4.4
[INFO] [stderr]    Compiling glutin_glx_sys v0.1.7
[INFO] [stderr]    Compiling glutin_egl_sys v0.1.5
[INFO] [stderr]    Compiling async-global-executor v1.3.0
[INFO] [stderr]    Compiling block-buffer v0.9.0
[INFO] [stderr]    Compiling digest v0.9.0
[INFO] [stderr]    Compiling block-buffer v0.7.3
[INFO] [stderr]    Compiling digest v0.8.1
[INFO] [stderr]    Compiling parking_lot v0.9.0
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling rusttype v0.8.3
[INFO] [stderr]    Compiling wayland-commons v0.21.13
[INFO] [stderr]    Compiling serde_urlencoded v0.6.1
[INFO] [stderr]    Compiling crossbeam-deque v0.7.3
[INFO] [stderr]    Compiling async-std v1.6.5
[INFO] [stderr]    Compiling sha-1 v0.9.1
[INFO] [stderr]    Compiling sha-1 v0.8.2
[INFO] [stderr]    Compiling wayland-client v0.21.13
[INFO] [stderr]    Compiling wayland-protocols v0.21.13
[INFO] [stderr]    Compiling rusttype v0.7.9
[INFO] [stderr]    Compiling piston2d-graphics v0.37.0
[INFO] [stderr]    Compiling headers v0.3.2
[INFO] [stderr]    Compiling andrew v0.2.1
[INFO] [stderr]    Compiling tungstenite v0.11.1
[INFO] [stderr]    Compiling tempfile v3.1.0
[INFO] [stderr]    Compiling multipart v0.17.0
[INFO] [stderr]    Compiling tokio-util v0.3.1
[INFO] [stderr]    Compiling jpeg-decoder v0.1.20
[INFO] [stderr]    Compiling pin-project-internal v0.4.27
[INFO] [stderr]    Compiling structopt-derive v0.4.13
[INFO] [stderr]    Compiling async-trait v0.1.41
[INFO] [stderr]    Compiling image v0.23.10
[INFO] [stderr]    Compiling structopt v0.3.20
[INFO] [stderr]    Compiling pin-project v0.4.27
[INFO] [stderr]    Compiling futures-util v0.3.6
[INFO] [stderr]    Compiling tracing-futures v0.2.4
[INFO] [stderr]    Compiling smithay-client-toolkit v0.4.6
[INFO] [stderr]    Compiling winit v0.19.5
[INFO] [stderr]    Compiling piston2d-opengl_graphics v0.74.0
[INFO] [stderr]    Compiling pistoncore-input v1.0.0
[INFO] [stderr]    Compiling h2 v0.2.6
[INFO] [stderr]    Compiling futures v0.3.6
[INFO] [stderr]    Compiling tokio-tungstenite v0.11.0
[INFO] [stderr]    Compiling glutin v0.21.2
[INFO] [stderr]    Compiling pistoncore-window v0.47.0
[INFO] [stderr]    Compiling pistoncore-event_loop v0.52.0
[INFO] [stderr]    Compiling piston v0.52.0
[INFO] [stderr]    Compiling pistoncore-glutin_window v0.66.0
[INFO] [stderr]    Compiling hyper v0.13.8
[INFO] [stderr]    Compiling warp v0.2.5
[INFO] [stderr]    Compiling cardgame v0.1.1 (/opt/rustwide/workdir)
[INFO] [stdout] error: expected identifier, found keyword `Self`
[INFO] [stdout]   --> src/game.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 |     Self,
[INFO] [stdout]    |     ^^^^ expected identifier, found keyword
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected item, found `;`
[INFO] [stdout]   --> src/game.rs:31:2
[INFO] [stdout]    |
[INFO] [stdout] 31 | };
[INFO] [stdout]    |  ^ help: remove this semicolon
[INFO] [stdout]    |
[INFO] [stdout]    = help: braced struct declarations are not followed by a semicolon
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected item, found `;`
[INFO] [stdout]   --> src/game.rs:37:2
[INFO] [stdout]    |
[INFO] [stdout] 37 | };
[INFO] [stdout]    |  ^ help: remove this semicolon
[INFO] [stdout]    |
[INFO] [stdout]    = help: braced struct declarations are not followed by a semicolon
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0449]: unnecessary visibility qualifier
[INFO] [stdout]   --> src/game.rs:52:1
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub impl GameRules {
[INFO] [stdout]    | ^^^ `pub` not permitted here because it's implied
[INFO] [stdout]    |
[INFO] [stdout]    = note: place qualifiers on individual impl items instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `serde`
[INFO] [stdout]  --> src/game.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use serde::{Serialize, Deserialize};
[INFO] [stdout]   |     ^^^^^ use of undeclared crate or module `serde`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the derive macro `Serialize`
[INFO] [stdout]  --> src/game.rs:8:17
[INFO] [stdout]   |
[INFO] [stdout] 8 | #[derive(Debug, Serialize, Deserialize)]
[INFO] [stdout]   |                 ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the derive macro `Deserialize`
[INFO] [stdout]  --> src/game.rs:8:28
[INFO] [stdout]   |
[INFO] [stdout] 8 | #[derive(Debug, Serialize, Deserialize)]
[INFO] [stdout]   |                            ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the derive macro `Serialize`
[INFO] [stdout]   --> src/game.rs:17:17
[INFO] [stdout]    |
[INFO] [stdout] 17 | #[derive(Debug, Serialize, Deserialize)]
[INFO] [stdout]    |                 ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the derive macro `Deserialize`
[INFO] [stdout]   --> src/game.rs:17:28
[INFO] [stdout]    |
[INFO] [stdout] 17 | #[derive(Debug, Serialize, Deserialize)]
[INFO] [stdout]    |                            ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the derive macro `Serialize`
[INFO] [stdout]   --> src/game.rs:26:17
[INFO] [stdout]    |
[INFO] [stdout] 26 | #[derive(Debug, Serialize, Deserialize)]
[INFO] [stdout]    |                 ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the derive macro `Deserialize`
[INFO] [stdout]   --> src/game.rs:26:28
[INFO] [stdout]    |
[INFO] [stdout] 26 | #[derive(Debug, Serialize, Deserialize)]
[INFO] [stdout]    |                            ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the derive macro `Serialize`
[INFO] [stdout]   --> src/game.rs:33:17
[INFO] [stdout]    |
[INFO] [stdout] 33 | #[derive(Debug, Serialize, Deserialize)]
[INFO] [stdout]    |                 ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the derive macro `Deserialize`
[INFO] [stdout]   --> src/game.rs:33:28
[INFO] [stdout]    |
[INFO] [stdout] 33 | #[derive(Debug, Serialize, Deserialize)]
[INFO] [stdout]    |                            ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the derive macro `Serialize`
[INFO] [stdout]   --> src/game.rs:43:17
[INFO] [stdout]    |
[INFO] [stdout] 43 | #[derive(Debug, Serialize, Deserialize)]
[INFO] [stdout]    |                 ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the derive macro `Deserialize`
[INFO] [stdout]   --> src/game.rs:43:28
[INFO] [stdout]    |
[INFO] [stdout] 43 | #[derive(Debug, Serialize, Deserialize)]
[INFO] [stdout]    |                            ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: `Self` in paths can only be used in start position
[INFO] [stdout]   --> src/game.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 |     Self,
[INFO] [stdout]    |     ^^^^ `Self` in paths can only be used in start position
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Optional` in this scope
[INFO] [stdout]    --> src/game.rs:28:11
[INFO] [stdout]     |
[INFO] [stdout] 28  |       cost: Optional<i16>,
[INFO] [stdout]     |             ^^^^^^^^ help: an enum with a similar name exists: `Option`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `structopt::StructOpt`
[INFO] [stdout]  --> src/game.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use structopt::StructOpt;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/game.rs:6:15
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::io::{self, BufReader};
[INFO] [stdout]   |               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `Try`)
[INFO] [stdout]   --> src/game.rs:54:20
[INFO] [stdout]    |
[INFO] [stdout] 53 | /     pub fn from(filename: String) -> GameRules {
[INFO] [stdout] 54 | |         let file = File::open(filename)?;
[INFO] [stdout]    | |                    ^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `GameRules`
[INFO] [stdout] 55 | |         let reader = BufReader::new(file);
[INFO] [stdout] 56 | |
[INFO] [stdout] 57 | |     }
[INFO] [stdout]    | |_____- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Try` is not implemented for `GameRules`
[INFO] [stdout]    = note: required by `from_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/game.rs:53:38
[INFO] [stdout]    |
[INFO] [stdout] 53 |     pub fn from(filename: String) -> GameRules {
[INFO] [stdout]    |            ----                      ^^^^^^^^^ expected struct `GameRules`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 19 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0432, E0433, E0449.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `cardgame`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "118131c9f812b7a429944325c12f16cfa7fe8352dec8c9c7a43e07a2aa9b54e5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "118131c9f812b7a429944325c12f16cfa7fe8352dec8c9c7a43e07a2aa9b54e5", kill_on_drop: false }`
[INFO] [stdout] 118131c9f812b7a429944325c12f16cfa7fe8352dec8c9c7a43e07a2aa9b54e5
